﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Traceability.Domain;

namespace Traceability.Service.Interfae
{
    /// <summary>
    /// 添加剂
    /// </summary>
    public interface IAdditiveService
    {
        Task<int> CreateAdditives(Additive additive);
        /// <summary>
        /// 反填根据本身生产批次
        /// </summary>
        /// <param name="AdditiveId"></param>
        /// <returns></returns>
        Task<List<Additive>> GetAdditiveBy(string bath);
        Task<int> UpdateAdditive(Additive additive);
        /// <summary>
        /// 显示根据溯源ID
        /// </summary>
        /// <param name="tid"></param>
        /// <returns></returns>
        Task<List<Additive>> GetAdditiveList(int tid);

    }
}
